import * as vscode from 'vscode';
import { QuestionViewProvider } from './tree-view/question';

export function activate(context: vscode.ExtensionContext) {
	let disposable = vscode.commands.registerCommand('vscode-zhihu.helloWorld', () => {
		vscode.window.showInformationMessage('Hello World from vscode-zhihu!');
	});

	context.subscriptions.push(disposable);

	vscode.window.registerTreeDataProvider('zhihu-question', QuestionViewProvider);
}

// this method is called when your extension is deactivated
export function deactivate() {}
